<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>二合一App JS-SDK测试</title>
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  <style>
    body,
    html {
      height: 100%;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: -apple-system-font, Helvetica Neue, Helvetica, sans-serif;
    }

    ul {
      list-style: none;
    }

    .page,
    body {
      background-color: #ededed;
    }
  </style>
  <link href="https://cdn.bootcss.com/weui/2.1.3/style/weui.min.css" rel="stylesheet">
</head>
<body ontouchstart="">
  <div class="container" id="container">
    <div class="page input js_show">
      <div class="page__bd">
        <div class="weui-cells__title"></div>
        <div class="weui-cells weui-cells_form">
          <div class="weui-btn-area">
            <div style="text-align: center;">加解密通讯 发起请求</div>
            <a id="btn-request" class="weui-btn weui-btn_primary" href="javascript:"> 发起请求 </a>
          </div>
        </div>
      </div>
    </div>
    <div class="weui-footer">
      <p class="weui-footer__text">Copyright © 2019-2025 orientsec.ued</p>
    </div>
  </div>
  <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
  <script src="./js/dfzq-jsapis-mock-1.0.0.js"></script>
  <script>
    var vConsole = new VConsole();
  </script>
  <script>
    /**
     * 发起事件 触发 btn-login
     */
    $("#btn-request").on("click", function (options) {
      dfzqJsApis.request("IF115000")
      .then(response => {
        alert(JSON.stringify(response))
      }).catch(err => alert("[error]:" + JSON.stringify(err)));
    });
  </script>
</body>
</html>